package com.yuxi.Dao.Impl;

import java.io.Serializable;
import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;

import com.yuxi.Dao.TaskCompletionDao;
import com.yuxi.Entity.InformationSort;
import com.yuxi.Entity.TaskCompletion;

@Repository
public class TaskCompletionDaoImpl extends BaseDaoImpl<Serializable, Serializable> implements TaskCompletionDao {
	private Logger logger=LoggerFactory.getLogger(TaskCompletionDaoImpl.class);
	public TaskCompletionDaoImpl(){
		super(TaskCompletion.class);
	}
	@Override
	public TaskCompletion getCompletion(Integer tCompletionId) {
		// TODO Auto-generated method stub
		return (TaskCompletion) super.get(tCompletionId);
	}

	@Override
	public TaskCompletion addCompletion(TaskCompletion tCompletion) {
		// TODO Auto-generated method stub
		return (TaskCompletion) super.addAndReturn(tCompletion);
	}

	@Override
	public void deletetCompletion(TaskCompletion tCompletion) {
		// TODO Auto-generated method stub
		super.delete(tCompletion);
	}

	@Override
	public void modifly(TaskCompletion tCompletion) {
		// TODO Auto-generated method stub
		super.update(tCompletion);
	}
	@Override
	public List<TaskCompletion> getAllTaskCompletion() {
		// TODO Auto-generated method stub
		return super.find("from TaskCompletion");
	}

}
